home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-12-04 | 2.5 KB | 74 lines | [TEXT/MPS ] |
- #
- # File: Buildscript
- #
- # Contains: Script of MPW commands to build this Extension
- #
- # Version: 1
- #
- # Copyright: © 1997 by Apple Computer, Inc., all rights reserved.
- #
- # File Ownership:
- #
- # DRI: None
- #
- # Other Contact: Ben Koning
- #
- # Technology: MacOS System 7
- #
- # Writers:
- #
- # (BAK) Ben Koning
- #
- # Change History (most recent first):
- #
- # <2> 7/10/97 BAK Added a unique file creator given by Dave Lyons Allocation
- # Project, 'ofbf'.
- # <1> 7/1/97 BAK First checkin.
- #
-
- #
- # Buildscript - Set the MPW directory to the directory containing these
- # files and then execute this to script to build the Extension.
- #
-
- # Setup directory shell variables:
- Set SrcDir `Directory`
- Set ObjDir "{SrcDir}"
-
- # Setup name shell variables:
- Set Name "OpenFWBridgeFixJuly97"
-
- # Echo some information:
- Echo "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #"
- Echo "#"
- Echo "# Building an Extension that is used to fix an OpenFirmware bug around 7/10/97."
- Echo "#"
- Echo "# Please take a moment to read these instructions:"
- Echo "#"
- Echo "# 1. This script and these source files are designed to work with MPW 3.4.2"
- Echo "# 2. Before running this script, set MPW directory to where this script is."
- Echo "# 3. Run this script, ie, by typing its name on the Worksheet."
- Echo "# 4. This script produces an output file (Extension) called: {Name}."
- Echo "# 5. This directory contains an output file (Text) called: ReadMe."
- Echo "#"
- Echo "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #"
-
- # Compile executable code and turn it into a resource to be "linked" in with other resources:
- Asm "{SrcDir}Extension.a" -i "{SrcDir}" -o "{ObjDir}Extension.a.o"
- Link "{ObjDir}Extension.a.o" -rt INIT=0 -o "{ObjDir}INIT=0.rsrc"
-
- # Compile resource code, which also "includes" ("links") in the executable code compiled
- # above as well as other pre-compiled (".rsrc") resources into the finished file; give the
- # output file its final name at this stage; and delete any old output file first:
- Delete -i "{SrcDir}{Name}"
- Rez -a "{SrcDir}Extension.r" -i "{SrcDir}" -o "{SrcDir}{Name}"
-
- # Set the filetypes to indicate that this is an Extension; set the "custom icon bit" in
- # the file's flag bits so the Finder displays its icon. Note that the creator is unique
- # and assigned to this task, and has thus been allocated in the Apple Allocation Project:
- SetFile -t 'INIT' -c 'ofbf' -a C "{SrcDir}{Name}"
-
- # Clean up trash:
- Delete -i "{ObjDir}Extension.a.o"
- Delete -i "{ObjDir}INIT=0.rsrc"
-